package com.yan.dao.entity;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

@Data
public class Reserve implements Serializable{
	// books字段
	private Integer id;
	private String bname;
	private Integer sid;
	private String number;
	private String author;
	private String birth;
	private String edition;
	private String sname;
	private Integer uid;
	private Integer bkid;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date startTime;
	private Date endTime;
	private Integer status;
	// 用户名
	private String uname;

	@Override
	public String toString() {
		return "Reserve [id=" + id + ", bname=" + bname + ", sid=" + sid + ", number=" + number + ", author=" + author
				+ ", birth=" + birth + ", edition=" + edition + ", sname=" + sname + ", uid=" + uid + ", bkid=" + bkid
				+ ", startTime=" + startTime + ", endTime=" + endTime + ", status=" + status + ", uname=" + uname + "]";
	}

}
